<template>
  <div id="app">
    <el-menu mode="horizontal"
             default-active="2"
             @select="handleSelect">
      <el-menu-item index="1"
                    disabled>智能灯杆</el-menu-item>
      <el-menu-item index="2">
        实时数据
      </el-menu-item>
      <el-menu-item index="3">
        历史数据
      </el-menu-item>
    </el-menu>
    <img src="./assets/logo.png" />
    <el-image :src="require('./assets/logo.png')"
              style="height: 50px;width: 50px;"></el-image>
    <router-view v-wechat-title='$route.meta.title'></router-view>
  </div>
</template>

<script>
// import axios from 'axios'
// import qs from 'qs'

export default {
  name: 'App',
  components: {
  },
  data: function () {
    return {
      text1: ""
    }
  },
  mounted: function () {

  },
  methods: {
    handleSelect (key) {
      if (key === '2') {
        this.$router.push('/')
      } else if (key === '3') {
        this.$router.push('/history')
      }
    }
  }

}
</script>

<style>
.amap-wrapper {
  height: 500px;
}
#app {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
.show-text1 {
  font-size: 18px;
  line-height: 1.7;
}
.box-card {
  margin: 20px;
}
</style>
